[all]
copyright=(C) 2005, cFos Software GmbH
designer=Ingo Guenther
version=cFosSkin V1.0
type=net,comport
name=Aquarium
background=back2.png
main_rect=54,51,113,92
blend_time=300
blend_out_time=500
transparentcolor=255,0,0

;font definitions
[numchars]
fontbitmap=num_chars.png
framewidth=4
frameheight=7
fontbitmapchars=0 123456789

[numchars2]
fontbitmap=num_chars2.png
framewidth=4
frameheight=6
fontbitmapchars=0 123456789

; background animation
[disp1]
value=open
method=motion
rect=63,64,109,88
bitmap=backani.png
min=1
max=1
updatetime=80
idleframe=0
pause=1600

;cps meters total
[disp2]
products=cfosspeed
value=total_rx_speed
method=history
updatetime=120
historysize=1
hdisp1=rx_speed_disp_t

[rx_speed_disp_t]
method=animation
rect=54,51,113,92
bitmap=rxmeter.png
min=0
max=100
frames=1
break1=1
frames2=10
alpha_val=100

[disp3]
products=cfosspeed
value=total_tx_speed
method=history
updatetime=120
historysize=1
hdisp1=tx_speed_disp_t

[tx_speed_disp_t]
method=animation
rect=57,59,113,92
bitmap=txmeter.png
min=0
max=100
frames=1
break1=1
frames2=10
alpha_val=100

;cps meters local
[disp4]
value=rx_speed
method=history
updatetime=120
historysize=1
hdisp1=rx_speed_disp

[rx_speed_disp]
method=animation
rect=54,51,113,92
bitmap=rxmeter.png
min=0
max=100
frames=1
break1=1
frames2=10

[disp5]
value=tx_speed
method=history
updatetime=120
historysize=1
hdisp1=tx_speed_disp

[tx_speed_disp]
method=animation
rect=57,59,113,92
bitmap=txmeter.png
min=0
max=100
frames=1
break1=1
frames2=10

;budget
[disp6]
value=budget_level
method=animation
rect=65,88,110,90
bitmap=budget.png
min=0
max=100
frames=45
updatetime=80
alpha_val=200

;normal packets
[rx_disp]
method=history
updatetime=120
updateinterval=4
historysize=15
hdisp1=rx_c1
hdisp2=rx_c2
hdisp3=rx_c3
hdisp4=rx_c4
hdisp5=rx_c5
hdisp6=rx_c6
hdisp7=rx_c7
hdisp8=rx_c8
hdisp9=rx_c9
hdisp10=rx_c10
hdisp11=rx_c11
hdisp12=rx_c12
hdisp13=rx_c13
hdisp14=rx_c14
hdisp15=rx_c15

[rx_c1]
method=animation
bitmap=rx_c15.png
rect=64,77,73,87
min=0
max=1
frames=2
alpha_val=60

[rx_c2]
method=animation
bitmap=rx_c14.png
rect=65,77,76,87
min=0
max=1
frames=2
alpha_val=130

[rx_c3]
method=animation
bitmap=rx_c13.png
rect=68,77,78,87
min=0
max=1
frames=2
alpha_val=180

[rx_c4]
method=animation
bitmap=rx_c12.png
rect=72,78,81,87
min=0
max=1
frames=2
alpha_val=220

[rx_c5]
method=animation
bitmap=rx_c11.png
rect=76,78,84,87
min=0
max=1
frames=2

[rx_c6]
method=animation
bitmap=rx_c10.png
rect=78,78,85,87
min=0
max=1
frames=2

[rx_c7]
method=animation
bitmap=rx_c9.png
rect=81,78,86,87
min=0
max=1
frames=2

[rx_c8]
method=animation
bitmap=rx_c8.png
rect=82,78,86,87
min=0
max=1
frames=2

[rx_c9]
method=animation
bitmap=rx_c7.png
rect=84,79,87,87
min=0
max=1
frames=2

[rx_c10]
method=animation
bitmap=rx_c6.png
rect=85,79,88,87
min=0
max=1
frames=2

[rx_c11]
method=animation
bitmap=rx_c5.png
rect=86,79,88,87
min=0
max=1
frames=2

[rx_c12]
method=animation
bitmap=rx_c4.png
rect=86,80,88,87
min=0
max=1
frames=2
alpha_val=220

[rx_c13]
method=animation
bitmap=rx_c3.png
rect=86,80,88,87
min=0
max=1
frames=2
alpha_val=180

[rx_c14]
method=animation
bitmap=rx_c2.png
rect=86,81,88,87
min=0
max=1
frames=2
alpha_val=130

[rx_c15]
method=animation
bitmap=rx_c1.png
rect=85,81,88,87
min=0
max=1
frames=2
alpha_val=60

[disp7]
value=rx_data_cnt
method=delta
start=0
disp=rx_disp
updatetime=480

[tx_disp]
method=history
updatetime=120
updateinterval=4
historysize=15
hdisp1=tx_c1
hdisp2=tx_c2
hdisp3=tx_c3
hdisp4=tx_c4
hdisp5=tx_c5
hdisp6=tx_c6
hdisp7=tx_c7
hdisp8=tx_c8
hdisp9=tx_c9
hdisp10=tx_c10
hdisp11=tx_c11
hdisp12=tx_c12
hdisp13=tx_c13
hdisp14=tx_c14
hdisp15=tx_c15

[tx_c1]
method=animation
bitmap=tx_c1.png
rect=89,81,91,87
min=0
max=1
frames=2
alpha_val=60

[tx_c2]
method=animation
bitmap=tx_c2.png
rect=89,81,92,87
min=0
max=1
frames=2
alpha_val=130

[tx_c3]
method=animation
bitmap=tx_c3.png
rect=89,80,92,87
min=0
max=1
frames=2
alpha_val=180

[tx_c4]
method=animation
bitmap=tx_c4.png
rect=89,80,92,87
min=0
max=1
frames=2
alpha_val=220

[tx_c5]
method=animation
bitmap=tx_c5.png
rect=89,79,92,87
min=0
max=1
frames=2

[tx_c6]
method=animation
bitmap=tx_c6.png
rect=90,79,93,87
min=0
max=1
frames=2

[tx_c7]
method=animation
bitmap=tx_c7.png
rect=90,79,94,87
min=0
max=1
frames=2

[tx_c8]
method=animation
bitmap=tx_c8.png
rect=91,78,95,87
min=0
max=1
frames=2

[tx_c9]
method=animation
bitmap=tx_c9.png
rect=92,78,97,87
min=0
max=1
frames=2

[tx_c10]
method=animation
bitmap=tx_c10.png
rect=93,78,99,87
min=0
max=1
frames=2

[tx_c11]
method=animation
bitmap=tx_c11.png
rect=94,78,101,87
min=0
max=1
frames=2

[tx_c12]
method=animation
bitmap=tx_c12.png
rect=96,78,105,87
min=0
max=1
frames=2
alpha_val=220

[tx_c13]
method=animation
bitmap=tx_c13.png
rect=98,78,108,87
min=0
max=1
frames=2
alpha_val=180

[tx_c14]
method=animation
bitmap=tx_c14.png
rect=101,77,111,86
min=0
max=1
frames=2
alpha_val=130

[tx_c15]
method=animation
bitmap=tx_c15.png
rect=103,77,113,86
min=0
max=1
frames=2
alpha_val=60

[disp8]
value=tx_data_cnt
method=delta
start=0
disp=tx_disp
updatetime=480

;tx fast shaping
[tx_fast_disp]
method=history
updatetime=120
updateinterval=4
historysize=11
hdisp1=tx_f1
hdisp2=tx_f2
hdisp3=tx_f3
hdisp4=tx_f4
hdisp5=tx_f5
hdisp6=tx_f6
hdisp7=tx_f7
hdisp8=tx_f8
hdisp9=tx_f9
hdisp10=tx_f10
hdisp11=tx_f11

[tx_f1]
method=animation
bitmap=tx_f1.png
rect=89,76,92,82
min=0
max=1
frames=2
alpha_val=60

[tx_f2]
method=animation
bitmap=tx_f2.png
rect=89,76,92,81
min=0
max=1
frames=2
alpha_val=130

[tx_f3]
method=animation
bitmap=tx_f3.png
rect=89,75,92,81
min=0
max=1
frames=2
alpha_val=180

[tx_f4]
method=animation
bitmap=tx_f4.png
rect=89,70,94,81
min=0
max=1
frames=2
alpha_val=220

[tx_f5]
method=animation
bitmap=tx_f5.png
rect=90,69,97,79
min=0
max=1
frames=2

[tx_f6]
method=animation
bitmap=tx_f6.png
rect=90,69,99,79
min=0
max=1
frames=2

[tx_f7]
method=animation
bitmap=tx_f7.png
rect=94,69,102,78
min=0
max=1
frames=2

[tx_f8]
method=animation
bitmap=tx_f8.png
rect=96,69,105,79
min=0
max=1
frames=2

[tx_f9]
method=animation
bitmap=tx_f9.png
rect=98,71,108,80
min=0
max=1
frames=2

[tx_f10]
method=animation
bitmap=tx_f10.png
rect=100,74,111,83
min=0
max=1
frames=2

[tx_f11]
method=animation
bitmap=tx_f11.png
rect=103,76,113,85
min=0
max=1
frames=2

[disp9]
value=tx_shape_fast
method=delta
start=0
disp=tx_fast_disp
updatetime=480

; ping time
[disp10]
value=ping_time
historysize=1
method=history
updatetime=1600
hdisp1=ping1

[ping1]
method=motion
bitmap=ping.png
rect=68,65,90,79
min=1
max=79
updatetime=80
pause=400
idleframe=1
pauseframe=1
transform1=50,0,0,70,255,255,120,0,0,121,255,255

[disp11]
value=ping_time
historysize=1
method=history
updatetime=1600
hdisp1=ping2

[ping2]
method=motion
bitmap=ping.png
rect=68,65,90,79
min=80
max=350
updatetime=80
pause=400
idleframe=1
pauseframe=1

[disp12]
value=ping_time
historysize=1
method=history
updatetime=1600
hdisp1=ping3

[ping3]
method=motion
bitmap=ping.png
rect=68,65,90,79
min=351
max=999
updatetime=80
pause=400
idleframe=1
pauseframe=1
transform1=50,0,0,70,255,255,0,0,0,1,255,255

[disp13]
value=ping_time
historysize=1
method=history
updatetime=1600
hdisp1=ping4

[ping4]
method=motion
bitmap=noping.png
rect=68,65,90,79
min=0
max=0
updatetime=80
idleframe=1

; number of tcp connections
[disp14]
value=tcp_cnt
method=motion
bitmap=connects1.bmp
rect=83,66,95,70
min=1
max=5
idleframe=1

[disp15]
value=tcp_cnt
method=motion
bitmap=connects2.bmp
rect=83,66,95,70
min=6
max=50
idleframe=1

[disp16]
value=tcp_cnt
method=motion
bitmap=connects3.bmp
rect=83,66,95,70
min=51
max=999
idleframe=1

;low latency display
[disp17]
value=latency
method=motion
bitmap=low_lat.png
rect=68,70,77,78
min=1
max=1
idleframe=1
enabled=0

;low latency locked
[disp18]
value=latency
method=motion
bitmap=lat_lock.png
rect=68,70,77,78
min=1
max=1
updatetime=100
idleframe=1
enabled=0
pause=1000

; text display sections
[disp19]
value=rx_speed
method=text
rect=101,53,113,60
font=numchars
digits=3
format=r
flags=b
transform1=50,0,0,70,255,255,30,0,0,31,255,150
enabled=0

[disp20]
value=tx_speed
method=text
rect=101,59,113,66
font=numchars
digits=3
format=r
flags=b
transform1=43,0,0,45,255,255,117,0,0,118,255,255
enabled=0

[disp21]
value=ping_time
method=text
rect=77,72,89,78
font=numchars2
digits=3
format=r
flags=b
style=e
transform1=50,0,0,70,255,255,200,0,0,201,64,255
enabled=0

[disp22]
value=tcp_cnt
method=text
rect=84,65,96,71
font=numchars2
digits=3
format=c
flags=b
transform1=50,0,0,70,255,255,50,0,0,70,230,220
enabled=0

; active areas for toggling text/graphical displays

; switch background
[disp23]
method=activearea
bitmap=switch_main.png
rect=0,0,113,79
action=none
blend_time=250
enabled=0

;switch on low latency lock
[disp24]
method=activearea
bitmap=switch_latency.png
rect=5,47,97,79
action=spdcmd
target=gset latency 1 -save
blend_time=40
enabled=0

;switch off low latency lock
[disp25]
method=activearea
bitmap=switch_latency.png
rect=5,47,97,79
action=spdcmd
target=gset latency 2 -save
blend_time=40
enabled=0

;activate low latency display / lock on switch
[disp26]
method=activate
value=latency_mode
min=2
max=2
target=disp17,disp24
enabled=0

;activate low latency locked / lock off switch
[disp27]
method=activate
value=latency_mode
min=1
max=1
target=disp18,disp25
enabled=0

; toggle ping display over animation
[disp28]
method=activearea
bitmap=switch_ping.png
rect=5,33,97,79
action=toggle
target=disp21
blend_time=40
enabled=0

; toggle tcp connects over animation
[disp29]
method=activearea
bitmap=switch_tcp.png
rect=5,19,97,72
action=toggle
target=disp22
blend_time=40
enabled=0

; toggle speed meter
[disp30]
method=activearea
bitmap=switch_speed.png
rect=5,5,113,68
action=toggle
target=disp19,disp20
blend_time=40
enabled=0

;open connection console
[disp31]
method=activearea
bitmap=switch2.png
rect=99,70,108,77
action=exec
target=mshta.exe
parameters="~p\pub\console.htm"
blend_time=100
enabled=0

; open box when online
[disp32]
products=cfosspeed
value=open
method=slider
rect=61,62,113,92
bitmap=open.png
scale=31
min=0
max=31
stepsize=1
frames=32
updatetime=40

[disp33]
products=cfos
value=open
method=slider
rect=61,62,113,92
bitmap=open2.png
scale=31
min=0
max=31
stepsize=1
frames=32
updatetime=40

; deactivate toggle buttons if box not open
[disp34]
value=open
method=activate
min=1
max=1
target=disp23,disp26,disp27,disp28,disp29,disp30,disp31

[disp34]
value=expired
method=animation
bitmap=no_way.png
rect=73,58,105,91
min=0
max=1
frames=2

; activate message button
[disp40]
products=cfosspeed
method=activate
value=msg_avail
min=1
max=1
target=disp41

[disp41]
products=cfosspeed
method=activearea
bitmap=message.png
rect=65,64,110,92
action=show_message
print_allowed=0
regions=0
blend_in=128
blend_time=200
